import java.io.*;


class Robot776 implements Runnable {

	public void run() {

		try {
			int sayac = 0 ;
			while (true) {

				if ( (sayac % 10000000) == 0) {
					System.out.println(Thread.currentThread().getName()
						                                  +"-->"+sayac);
				}
				sayac++;
			}

		} catch (Exception ex) {
			System.out.println("Hata olustu -->"+ ex);
		}
	}
}



class Robot777 extends Thread {

	public Robot777(String isim) {
		super(isim);
	}

	public void run() {

		try {
			int sayac = 0 ;
			while (true) {

				if ( (sayac % 10000000) == 0) {
					System.out.println(this.getName()+"-->"+sayac);
				}

				if ( (sayac == 50000000) ) {
					System.out.println("*******Ltf sayi giriniz*******");
					// G/C (I/O) 
					BufferedReader a = new BufferedReader(
						               new InputStreamReader(System.in) );
					System.out.println("-->" + a.readLine() );
				}
				sayac++;
			}

		} catch (Exception ex) {
			System.out.println("Hata olustu -->"+ ex);
		}
	}
}




public class Bloklama {

	public static void main(String args[]) throws Exception {

		Robot777 r777 = new Robot777("Robot777");

		Robot776 r776 = new Robot776();
		Thread t = new Thread(r776, "Robot776") ;	// dikkat



		r777.setPriority(8);//dikkat
		t.setPriority(2);	//dikkat

		r777.start();
		t.start();
	}
}

